﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace mBlog.Data.Entities
{
    public class Visit
    {
        public long ID { get; set; }

        [Column(TypeName="varchar")]
        [MaxLength(50)]
        [Required]
        public string UserIP { get; set; }
        
        [Column(TypeName="varchar")]
        [MaxLength(200)]
        [Required]
        public string Browser { get; set; }

        [Required]
        public DateTime When { get; set; }

        public virtual Post Post { get; set; }
    }
}
